package homework.ooday02._cp.person;

public class Teacher extends Person{
    double salary;

    Teacher(String name,int age,String address,double salary){
        super(name,age,address);
        this.salary = salary;
    }

    void teach(){
        System.out.println(name+"在教书");
    }

    void sayHi(){
        System.out.println("我叫"+name+","+age+"岁"+"住在"+address+"工资是："+salary);
    }
}
